<?php
// +-------------+------------------+------+-----+---------+----------------+
// | Field       | Type             | Null | Key | Default | Extra          |
// +-------------+------------------+------+-----+---------+----------------+
// | id          | int(11)          | NO   | PRI | NULL    | auto_increment |
// | uid         | int(11) unsigned | YES  | MUL | 0       |                |
// | group_id    | int(11) unsigned | YES  | MUL | 0       |                |
// | member_id   | int(11) unsigned | YES  |     | 0       |                |
// | create_time | int(11) unsigned | YES  |     | 0       |                |
// | update_time | int(11) unsigned | YES  |     | 0       |                |
// +-------------+------------------+------+-----+---------+----------------+
namespace app\admin\validate;

use think\Validate;

class AuthGroupAccess extends Validate
{
    protected $rule = [
        "uid" => "gt:0",
        "group_id" => "gt:0",
    ];

    protected $field = [
        "uid"  => "管理员ID",
        "group_id"  => "角色组ID",
    ];

    protected $message = [
        "uid.gt" => "管理员ID不能为空",
        "group_id.gt" => "角色组ID不能为空",
    ];
}